home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / auxlib / aux_resize_proc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-18  |  760 b   |  29 lines

  1. /*
  2. ### procedure for resizing combined space canvases ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6. #include <suntool/canvas.h>
  7.  
  8. void aux_resize_proc(canvas)
  9. Canvas canvas;
  10. {
  11.         int i;
  12.     extern int aux_win_i,aux_max;
  13.     extern Canvas *aux_canvas;
  14.         extern int aux_xcanvas,aux_ycanvas,aux_xwindow,aux_ywindow,aux_xwidth,aux_ywidth,aux_panel_height;
  15.         extern Frame *aux_frame;
  16.  
  17.     for(i=0;i<aux_max;i++){
  18.         if(canvas == aux_canvas[i]){
  19.             aux_win_i = i;
  20.         }
  21.     }
  22.         aux_xwindow = (int)window_get(aux_frame[aux_win_i],WIN_WIDTH);
  23.         aux_ywindow = (int)window_get(aux_frame[aux_win_i],WIN_HEIGHT);
  24.         aux_xcanvas= aux_xwindow;
  25.         aux_ycanvas= aux_ywindow;
  26.         aux_xwidth= aux_xcanvas;
  27.         aux_ywidth= aux_ycanvas - aux_panel_height;
  28. }
  29.